package org.itboys.advertisement.entity;

import org.mongodb.morphia.annotations.Indexed;
import org.itboys.mongodb.entity.BaseLongIdEntity;

import org.mongodb.morphia.annotations.Entity;
/**
 * 广告元素 素材
 * @author weisky
 *
 */
@Entity(value = "AdvertisementItem", noClassnameStored = true)
public class AdvertisementItem extends BaseLongIdEntity{

	private static final long serialVersionUID = -3175429747108622330L;
	
	@Indexed
	private Long advertisementId;
	private String title;
	private String filePath;
	private String clickUrl;
	private String content;
	private Integer col;
	private Integer row;
	private Integer isDeleted = 0;//逻辑删除标记 0有效 1删除
	private int order;//排序 越小越靠前

	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}

	public Long getAdvertisementId() {
		return advertisementId;
	}
	public void setAdvertisementId(Long advertisementId) {
		this.advertisementId = advertisementId;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getFilePath() {
		return filePath;
	}
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getClickUrl() {
		return clickUrl;
	}

	public void setClickUrl(String clickUrl) {
		this.clickUrl = clickUrl;
	}

	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Integer getCol() {
		return col;
	}
	public void setCol(Integer col) {
		this.col = col;
	}
	public Integer getRow() {
		return row;
	}
	public void setRow(Integer row) {
		this.row = row;
	}
	public Integer getIsDeleted() {
		return isDeleted;
	}
	public void setIsDeleted(Integer isDeleted) {
		this.isDeleted = isDeleted;
	}
}
